-- GENERATED SPELL FOR [Amira Blazeweaver] --


function spell0_33331(pUnit, Event) --@Conjure Toasty Fire,n/a--
pUnit:FullCastSpellOnTarget(62823,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33331', 1000, 1)
end

function spell1_33331(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(61909,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33331', 9000, 1)
end

function spell2_33331(pUnit, Event) --@Melt Ice,n/a--
pUnit:FullCastSpellOnTarget(64528,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33331', 11000, 1)
end

function Sorts_33331(pUnit, Event)
local choix_sorts_33331 = math.random(0, 2)
if choix_sorts_33331 == 0 then
pUnit:RegisterEvent('spell0_33331', 1, 1)
end
if choix_sorts_33331 == 1 then
pUnit:RegisterEvent('spell1_33331', 1, 1)
end
if choix_sorts_33331 == 2 then
pUnit:RegisterEvent('spell2_33331', 1, 1)
end
end

function mob33331_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_33331', math.random(1500, 3000), 1)
end

function mob33331_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33331_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33331_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(33331, 1, 'mob33331_Action')
RegisterUnitEvent(33331, 2, 'mob33331_Leave')
RegisterUnitEvent(33331, 3, 'mob33331_Kill')
RegisterUnitEvent(33331, 4, 'mob33331_Die')
